import request from '@/utils/request'

export function getReplicaSet(data) {
  return request({
    url: 'api/k8sDeploymentStatus/queryReplicaSetList',
    method: 'post',
    data
  })
}

export function getPods(data) {
  return request({
    url: 'api/k8sDeploymentStatus/queryPodList',
    method: 'post',
    data
  })
}

export function getPodMetric(data) {
  return request({
    url: 'api/k8sPodMetricStatus/queryPodMetric',
    method: 'post',
    data
  })
}

export function getPodLog(data) {
  return request({
    url: 'api/k8sDeploymentStatus/queryPodLog',
    method: 'post',
    data
  })
}

export function queryProjectRunningStatus(data) {
  return request({
    url: 'api/k8sDeploymentStatus/queryProjectRunningStatus',
    method: 'post',
    data
  })
}
